import Vue from 'vue'
import App from './App.vue'
import store from './store'
import { initRouter } from './router'
import bootstrap from '@/bootstrap'
import Plugins from '@/plugins'
import '@/plugins/vxeTable'
import 'animate.css/source/animate.css'
import '@/assets/scss/element-variables.scss'
import '@/assets/scss/common.scss'


Vue.config.productionTip = false

const router = initRouter(false)
Vue.use(Plugins)
bootstrap({ router, store, message: Vue.prototype.$message })

/**
 * 全局克隆
 * @param {Object} obj
 */
Vue.prototype.$clone = function (obj) {
  return JSON.parse(JSON.stringify(obj))
}

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
